package com.neusoft.databus.common.pool;

import org.apache.commons.pool2.KeyedPooledObjectFactory;
import org.apache.commons.pool2.impl.GenericKeyedObjectPool;
import org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig;

/**
 * 连接池实现
 *
 * @author sunchf
 * @date 2018年12月13日 下午2:07:17
 */
public abstract class AbstractPool<K, T> extends GenericKeyedObjectPool<K, T> {
    public AbstractPool(KeyedPooledObjectFactory<K, T> factory) {
        super(factory);
    }

    @SuppressWarnings({"rawtypes", "unchecked" })
    public AbstractPool(KeyedPooledObjectFactory<K, T> factory, GenericKeyedObjectPoolConfig config) {
        super(factory, config);
    }

    public abstract String getName();
}
